In this paper, the transient response of structures is approximated using the B spline function and the weighted residuals technique to generate the direct integration algorithms of multi-steps form as well as single-step form. 本文以样条函数近似表达结构的瞬态响应,然后利用加权残量法建立起多步和单步形式的逐步积分算法。